#include <iostream>
#include "IOCP_DLL.h"
using namespace std;

#pragma comment(lib,"IOCP0401_test.lib")

int main(void)
{
	char s[] = "nihao";
	char channel_map_path[] = "D:\\Project\\learnC++\\QT_PRO\\DigitalArrays";
	bool ret = false;
	uint32_t* buffer = new uint32_t[500 * 288];
	init(16, s, channel_map_path, 10);
	begin_save();
	while (1)
	{
		ret = get_data(buffer, 500);
		if (ret)
		{
			ret = false;
			//cout << "buffer" << endl;
		}
	}

	//char buf[4] = { 0x10,0x20,0x30,0x40 };
	//int num = 0;
	//memcpy(&num, buf, 4);
	//cout << num << endl;

	return 0;
}